package test_achieve.courierapp.scenes;

import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import test_achieve.courierapp.HttpCourier;

/**
 * Created by chenkuo on 2017/11/23.
 */
public class HttpCourierMain {
    /**闪送员完成订单流程的封装*/

    /**抢单至评价完成*/
    @Given("^p闪送员抢单并完成订单：(.*)$")
    public void p闪送员抢单并完成订单(String user) throws Throwable {
        HttpCourier httpCourier =new HttpCourier();
        httpCourier.p抢单成功(user);
        httpCourier.p闪送员致电寄方(user);
        httpCourier.p闪送员完成取件(user);
        httpCourier.p闪送员致电收方(user);
        httpCourier.p闪送员完成收件(user);
        httpCourier.p闪送员完成评价闪送员账户(user,null);
    }


}
